<%@ page contentType="text/html; charset=gb2312"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:if test="${empty tree||tree<0}">
	<c:set var="tree" value="0" scope="request"/>
</c:if>
 <c:forEach var="cls" items="${pindaoList}" varStatus="id">
 		<c:if test="${cls.fatherId==0}">
 			<div style="overflow:scroll;height:200px;width:20%;margin:10px;border:1px solid #000000;background:#efefef;float:left;padding:10px;">
 		</c:if>
 		<p>
	  			<c:forEach begin="1" end="${tree}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</c:forEach>
	  			<c:choose>
	  				<c:when test="${empty cls.subPindaoList}">
	 					<input type="checkbox" name="selItems" value="${cls.id}" <c:if test="${cls.selected==true}">checked</c:if> <c:if test="${cls.canselect==false}">disabled="true" style="border:1px solid #ff0000;"</c:if>/>
	 				</c:when>
	 				<c:otherwise>
						<img src="image/folder.gif"/>	 					
	 				</c:otherwise>
	  			</c:choose>
	  			
	  			<span style="font-weight:bold;font-size:14px;">${cls.name}</span>
  		</p>
		<c:if test="${!empty cls.subPindaoList}">
			<c:set var="tree" value="${tree+1}" scope="request"/>
			<c:set var="pindaoList" value="${cls.subPindaoList}" scope="request"/>
			<jsp:include page="cls.jsp"/>
		</c:if>
 		<c:if test="${cls.fatherId==0}">
 			</div>
 		</c:if>
 		<p>
</c:forEach>
<c:set var="tree" value="${tree-1}" scope="request"/>
